Repository navigation
Show only the reason on the fingerprint setup polkit prompt - #20972
Merged
Merged
Conversation
Add a polkit action for /usr/bin/omarchy-setup-security-fingerprint-enroll (argv1=enroll) so pkexec prompts with 'Set up fingerprint authentication' on a single line instead of showing the truncated command line, while keeping arbitrary pkexec commands visible. Translate that policy message through the existing fingerprint.authorize catalog key, invoke the packaged helper path from Enrollment.qml (falling back to omarchy.polkit expect when the policy is not yet installed), and fix bare program matching in PolkitModel.js when pkexec truncates inside the executable name.
Contributor
[Medium impact] The PR appears safe to merge; the checkout fallback is fixed and no new blocking issues were found. SummaryFingerprint setup gets a dedicated polkit message, translated through the existing shell catalog.
The previous checkout enrollment finding is fixed. No new actionable issues were found. Reviews (2) · Last reviewed commit: "Keep checkout helper on PATH when polkit..." · Reviewed by Greptile |
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Nov 30, 2026
…0972) * Show only the reason on the fingerprint setup polkit prompt Add a polkit action for /usr/bin/omarchy-setup-security-fingerprint-enroll (argv1=enroll) so pkexec prompts with 'Set up fingerprint authentication' on a single line instead of showing the truncated command line, while keeping arbitrary pkexec commands visible. Translate that policy message through the existing fingerprint.authorize catalog key, invoke the packaged helper path from Enrollment.qml (falling back to omarchy.polkit expect when the policy is not yet installed), and fix bare program matching in PolkitModel.js when pkexec truncates inside the executable name. * Keep checkout helper on PATH when polkit policy is not installed
lbssousa
added a commit
to lbssousa/polkit-omarchy
that referenced
this pull request
Dec 1, 2026
upstream/ now holds shell/plugins/polkit/ from v4.6.0-rc2 (was main at a30167e, the same files as 4.6.0-rc1), merged into plugin/ with git merge-file and the old snapshot as the base, without conflicts: - omacom/omarchy#20559: a Cancel pill under the card, revealed by moving the pointer or clicking the scrim; mouse selection and an I-beam in the password field. - omacom/omarchy#20972: the fingerprint setup policy's message translated through the shell catalog, and pkexec prompts cut inside the executable's name matched against an expected label. #20972's two new cases are ported to tests/PolkitModel.test.js. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
When starting fingerprint setup for the first time, the polkit dialog showed
Authorize running commandover the truncated/usr/share/omarchy/bin/omarchy-setup-s ... rint-enroll enroll right-index-fingercommand line.default/polkit/org.omarchy.setup-security-fingerprint-enroll.policyfor/usr/bin/omarchy-setup-security-fingerprint-enroll(argv1 = enroll) with<message>Set up fingerprint authentication</message>, so polkit prompts with just the single-line reason instead of a genericorg.freedesktop.policykit.execcommand line, while keeping arbitrarypkexeccommands visible.shell/plugins/panels/fingerprint/Enrollment.qmlto invokepkexec /usr/bin/omarchy-setup-security-fingerprint-enroll enroll <finger>when the policy and packaged helper are installed, and fall back to the helper onPATHwithomarchy.polkit expecton dev checkouts that predate the policy.shell/plugins/polkit/PolkitModel.jsto translate the policy message through the existingfingerprint.authorizeshell catalog key (all 50 languages), and fixmatchesProgram()so bare program names still match whenpkexectruncates inside the executable name itself.test/shell.d/polkit-test.sh.Verification
default/polkit/org.omarchy.setup-security-fingerprint-enroll.policyXML syntax andpkaction --verbose --action-id org.omarchy.setup-security-fingerprint-enroll.test/shell.d/polkit-test.sh,test/shell.d/fingerprint-panel-test.sh,test/shell.d/i18n-test.sh, andtest/shell.d/qmllint-test.sh— all passed./usr/share/polkit-1/actions/and triggeringpkexec /usr/bin/omarchy-setup-security-fingerprint-enroll enroll right-index-fingerbefore fingerprint enrollment, confirming only the single-lineSet up fingerprint authenticationpill renders above the password card.Screenshots
Before
After